home *** CD-ROM | disk | FTP | other *** search
- function initScroll()
- {
- if(p.index_mc._height > hbase)
- {
- _visible = true;
- hindex = p.index_mc._height;
- bar._height = hbase * p.h / hindex;
- d = hbase - 22 - bar._height;
- bar._y = (- p.index_mc._y) * d / (hindex - hbase) + lup;
- p.box_mc._xscale = _X;
- }
- else
- {
- _visible = false;
- }
- }
- function barDrag()
- {
- startDrag(bar,0,-6,lup,-6,lup + d);
- }
- function barStop()
- {
- stopDrag();
- go();
- }
- function arrowGo(n)
- {
- var m = bar._y + n * 5 * hbase / hindex;
- if(m < lup or m > lup + d)
- {
- if(m < lup)
- {
- bar._y = lup;
- }
- else
- {
- bar._y = lup + d;
- }
- go();
- }
- else
- {
- bar._y = m;
- go();
- }
- }
- function go()
- {
- p.index_mc._y = (- (bar._y - lup)) * (hindex - hbase) / d;
- }
- p = _parent;
- colLight = p.colLight;
- colText = p.colText;
- colBase = p.colBase;
- down._y = p.h - 10;
- _visible = false;
- var hbase = p.h;
- var lup = 11;
- var d;
-